package com.example.cato_mongodb.repository;

import com.example.cato_mongodb.entity.Taco;
import org.springframework.data.mongodb.repository.ReactiveMongoRepository;
import reactor.core.publisher.Flux;
/*
  ReactiveMongoRepository 优化了insert方法
 */
public interface TacoRepository extends ReactiveMongoRepository<Taco,String> {

    Flux<Taco> findByOrderByCreateAtDesc(); //遵循自定义查询命名约定
}
